package com.example.命令模式;

/**
 * 灯 (Receiver) 命令的真正执行者
 */
public class Light {

    public void on() {
        System.out.println("开灯");
    }

    public void off() {
        System.out.println("关灯");
    }
}
